import { PSControlObjectImpl } from '../pscontrol-object-impl';
import { IPSDEChartSeriesEncode } from './ipsdechart-series-encode';

export class PSDEChartSeriesEncodeImplBase extends PSControlObjectImpl implements IPSDEChartSeriesEncode {
  get index(): number {
    return this.M.index;
  }

  get itemId(): string {
    return this.M.itemId;
  }

  get itemName(): string {
    return this.M.itemName;
  }

  get type(): 'XY' | 'POLAR' | 'RADAR' | 'PARALLEL' | 'SINGLE' | 'CALENDAR' | 'MAP' | 'NONE' {
    return this.M.type;
  }

  get cls(): string {
    return 'PSDEChartSeriesEncodeImplBase';
  }

  instanceof(cls: string): boolean {
    if (cls == 'control.chart.IPSChartSeriesEncode' || cls == 'control.chart.IPSDEChartSeriesEncode') return true;
    return super.instanceof(cls);
  }
}
